
//方式一的弹窗表单
document.write(` <button class="close-button" onclick="closeDialog(1)">&times;</button>
		    <h1 class="myDialog-title">为Pocket配置Wi-Fi</h1>
		    <h2 class="myDialog-annotation">Pocket将使用所填写的Wi-Fi进行联网</h2>
			<form class="myDialog-input-group"> 
		            <label class="lab">Wi-Fi 名称</label>
		        <div class="mui-input-row"> 
		        <input type="text"  placeholder="输入Wi-Fi名称">
		        </div> 
		            <label class="lab">Wi-Fi 密码</label>   
		        <div class="mui-input-row">
		            <input type="text"  placeholder="输入Wi-Fi密码">
		        </div>  
		        <div class="mui-button-row myDialog-btn">
		            <button type="button" class="mui-btn mui-btn-grey" onclick="closeDialog(1)">取消</button>
		            <button type="button" class="mui-btn mui-btn-primary" onclick="closeDialog(1)">确认</button>
		        </div>
		    </form>`)
			
			// 获取对话框元素
			let Method1 = document.getElementById('myDialog');
			//方式一打开弹窗
			function openMethod1Dialog(){
				if(true){mui.alert("• 请使用USB-C连接线，将Pocket连接至这台PC\n• 待Pocket设备启动后再试",'未检测到Pocket设备',);}
				Method1.showModal();
			}